package com.cbh.feign.controller.product;


import java.util.List;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.cbh.api.model.ApiResult;
import com.cbh.api.model.product.InsuranceSupplier;

public interface InsuranceSupplierControllerBase {

	@RequestMapping(value = "/auth/v3/insurance/supplier", method = RequestMethod.POST)
	public ApiResult<String> save(@RequestParam(value = "accountToken", required = true) String accountToken,
			@RequestBody(required = true) InsuranceSupplier ob);

	/**
	 * 根据ID获取机构信息
	 * 
	 * @param id
	 * @return
	 */
	@RequestMapping(value = "/auth/v3/insurance/supplier/id", method = RequestMethod.GET)
	public ApiResult<InsuranceSupplier> getByIcId(
			@RequestParam(value = "accountToken", required = true) String accountToken,
			@RequestParam(value = "id", required = true) String id);

	/**
	 * 获取组织下供应商信息
	 * 
	 * @param accountToken
	 * @param institution
	 * @param org
	 * @return
	 */
	@RequestMapping(value = "/auth/v3/insurance/supplier/institution/organize", method = RequestMethod.GET)
	public ApiResult<List<InsuranceSupplier>> getByArea(
			@RequestParam(value = "accountToken", required = true) String accountToken,
			@RequestParam(value = "organizeId", required = true) String organizeId);

}
